import { httpUrl } from 'api/config'
import { ajax } from 'api/axios'

export const newUser = (data = {}, seeionId = '') => {
  const url = `${httpUrl}/sys_register`

  return ajax(url, data, {
    header: {
      Cookie: `SESSION=${seeionId}`
    }
  })
}

export const sendTelphone = (data = {}) => {
  const url = `${httpUrl}/getVifyCode`

  return ajax(url, data)
}
